Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Qiskit circuit conversion to Tenet #291

Merged
merged 7 commits into from
Jan 23, 2025

Conversation

Todorbsc
Copy link
Contributor

@Todorbsc Todorbsc commented Jan 16, 2025

This PR resolves two bugs:

@Todorbsc Todorbsc added the bug Something isn't working label Jan 16, 2025
@Todorbsc Todorbsc self-assigned this Jan 16, 2025
Copy link
Member

@mofeing mofeing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Todorbsc like in #292, since CI is broken due to Reactant... do you mind running this tests locally and telling me if all tests pass?

Copy link
Member

@jofrevalles jofrevalles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Todorbsc !

@jofrevalles jofrevalles self-requested a review January 20, 2025 14:16
@@ -11,7 +11,7 @@ function Base.convert(::Type{Circuit}, ::Val{:qiskit}, pyobj::Py)
circuit = Circuit()

for instr in pyobj
gatelanes = map(x -> Lane(pyconvert(Int, x._index)), instr.qubits)
gatelanes = map(x -> Lane(pyconvert(Int, x._index) + 1), instr.qubits)
Copy link
Member

@mofeing mofeing Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have one question: are we sure that Qiskit only uses 1-dimensional coordinates for qubits? Do you mind checking it in the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your question is whether the qubits field is always a 1D array, then yes, I think so.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jofrevalles jofrevalles merged commit 53ac216 into master Jan 23, 2025
7 checks passed
@jofrevalles jofrevalles deleted the fix/qiskit-tenet-lane-indices branch January 23, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants